package bootstrap

import (
	"ginfwk/infrastructure/component/config"
	"ginfwk/infrastructure/component/db"
	"ginfwk/infrastructure/component/logger"
)

func InitConfig() {
	// 初始化配置
	config.Init()
}

func InitDatabase() {
	// 初始化DB
	db.Init(config.Global().Database)
}

func InitLogger() {
	// 初始化全局log
	logger.InitLogger(config.Global().Logger)
}
